import request from '@/utils/request'

// 查询设备入库列表
export function listSbrk(query) {
  return request({
    url: '/sbrk/sbrk/list',
    method: 'get',
    params: query
  })
}

// 查询设备入库详细
export function getSbrk(sbrkId) {
  return request({
    url: '/sbrk/sbrk/' + sbrkId,
    method: 'get'
  })
}

// 新增设备入库
export function addSbrk(data) {
  return request({
    url: '/sbrk/sbrk',
    method: 'post',
    data: data
  })
}

// 修改设备入库
export function updateSbrk(data) {
  return request({
    url: '/sbrk/sbrk',
    method: 'put',
    data: data
  })
}

// 删除设备入库
export function delSbrk(sbrkId) {
  return request({
    url: '/sbrk/sbrk/' + sbrkId,
    method: 'delete'
  })
}

// 获取主键ID
export function getSbrkId() {
  return request({
    url: '/sbrk/sbrk/getSbrkId',
    method: 'get'
  })
}
